// Include files
#include "Character.h"

// Constructors
Character::Character()
{
	// Player properties
	mIp = UNASSIGNED_SYSTEM_ADDRESS;
	mAccount = 0;
	mId = 0;
	mName = "";
	mLevel = 0;
	mClass = 0;
	mModel = "";
	mGender = 0;
}

Character::Character(PlayerData playerData)
{
	mIp = playerData.mIp;
	mAccount = playerData.mAccount;
	mId = playerData.mId;
	mName = playerData.mName.C_String();
	mLevel = playerData.mLevel;
	mClass = playerData.mClass;
	mModel = playerData.mModel.C_String();
	mGender = playerData.mGender;
	mStartPosition = playerData.mStartPosition;
	mStartRotation = playerData.mStartRotation;
}

// Destructor
Character::~Character()
{
}

// Functions to access private variables
SystemAddress Character::getIp()
{
	return mIp;
}

int Character::getAccount()
{
	return mAccount;
}
Ogre::Vector3 Character::getStartPosition()
{
	return mStartPosition;
}

int Character::getStartRotation()
{
	return mStartRotation;
}